import { get, post } from '@/utils/request'

const loginIn = (params)=> { return post('public/auth/login', params) }
const register = (params)=> { return post('public/auth/register', params) }
const getCode = (phone)=> { return get(`public/auth/code?phone=${phone}`) }
const verifyCode = (params)=> { return post('public/auth/verify', params) }

export default {
    loginIn,
    register,
    getCode,
    verifyCode
}